package com.facebook.common.executors;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.TimeUnit;

public final class CallerThreadExecutor extends AbstractExecutorService {
    private static final CallerThreadExecutor a = new CallerThreadExecutor();

    private CallerThreadExecutor() {

    }

    public static CallerThreadExecutor getInstance() {
        return a.a;
    }

    public final boolean awaitTermination(long arg2, TimeUnit arg4) throws InterruptedException {
        return true;
    }

    public final void execute(Runnable arg1) {
        arg1.run();
    }

    public final boolean isShutdown() {
        return false;
    }

    public final boolean isTerminated() {
        return false;
    }

    public final void shutdown() {
    }

    public final List shutdownNow() {
        this.shutdown();
        return Collections.emptyList();
    }
}

